<div id="nav" style="background-color: white;height: 60px;">
    <nav style="width: 1200px;">
        <ul class="layui-nav">
            <li class="logo-item">
                <a href="/">深的个人博客</a>
            </li>
            <li class="layui-nav-item item">
                <a href="/main/1">博文</a>
            </li>
            <li class="layui-nav-item">
                <a href="">相册</a>
            </li>
            <li class="layui-nav-item">
                <a href="/log//personalspace">日志</a>
            </li>
            <%if(iflogin){%>
            <li class="layui-nav-item presonal clearfix">
                <a href="">
                    <span class="headphoto">
                        <img src="/photo/<%=user.photo%>" class="layui-nav-img">
                    </span>
                    <span class="username"><%=user.userName%></span>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="/usercenter" class="four">个人中心</a></dd>
                    <%if(user.isAdmin){%>
                        <dd><a href="/log/personalspace" class="four">我的日志</a></dd>
                    <%}%>
                    <dd><a href="javascript:;" class="two cancellation">注销</a></dd>
                </dl>
            </li>
            <%}else{%>
            <li class="layui-nav-item  lore">
                <span id="login">登陆</span> <i>/</i> <span id="regin">注册</span>
            </li>
            <%}%>
                    
                   
                </ul>
            </nav>
</div>